package `in`.srain.cube.util.log

class LogClientManagerProxy {

    companion object {

        val clients = mutableMapOf<String, LogClient>()
        const val CLIENT_NAME_APP_PERFORMANCE = "app-performance"

        fun addClient(clientName: String, client: LogClient) {
            synchronized(clients) {
                clients.put(clientName, client)
            }
        }

        fun getClientByName(clientName: String): LogClient? {
            return clients[clientName]
        }
    }
}